package com.css.fxfzypg.modules.baseData.service;

import com.alibaba.fastjson.JSONObject;
import com.css.fxfzypg.base.response.RestResponse;
import com.css.fxfzypg.modules.baseData.entity.BuildingVulnerability;
import com.css.fxfzypg.modules.baseData.queryParams.BuildingVulnerabilityQueryParams;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface BuildingVulnerabilityService {


    List<BuildingVulnerability> getPage(BuildingVulnerabilityQueryParams queryParams);

    Map<String, Object> getLoginPersonInfo();

    void update(List<BuildingVulnerability> list);

    void exportExcel(HttpServletResponse response, BuildingVulnerabilityQueryParams queryParams);

    void save(List<BuildingVulnerability> list);

    void bashSave(Map<String,Object> map);

    List<BuildingVulnerability> query(BuildingVulnerabilityQueryParams queryParams);

    List<BuildingVulnerability> getVulnerability();

    List<BuildingVulnerability> getAllVulnerabilityOrder(String province, String city, String area, String tab);

    RestResponse getBySfIntensity(String sfIntensity);

    RestResponse importVulnerability(MultipartFile file) throws IOException;

    List<BuildingVulnerability> remoteGetAllVulnerabilityOrder(String province, String city, String county, String s, String source);

    void delbuildingVulnerability(List<String> idList);

    Integer countByCounty(String province, String city, String county);
    Integer countByCity(String province, String city);
    Integer countByProvince(String province);

    Integer countByProvinceAndYear(String provinceName, String taskYear);

    String getGeomByCode(String code);
}
